package com.example.common.enums;

public enum ChkStatus {
    Pending(0, "待审核"),
    Pass(1, "审核通过"),
    NotPass(2, "审核失败"),;

    private final Integer value;
    private final String description;

    ChkStatus(Integer value, String description) {
        this.value = value;
        this.description = description;
    }

    
    public Integer getName() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    public static String valueToDesc(Integer value) {
        if (value == 0) {
            return Pending.getDescription();
        } else if (value == 1) {
            return Pass.getDescription();
        } else if (value == 2) {
            return NotPass.getDescription();
        }
        return null;
    }
}
